import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入登录组件
import Login from '@/components/Login'
Vue.use(VueRouter)

const routes = [
    // 路由重定向
    { path: '/', redirect: '/login' },
    // 登录组件的路由
    { path: '/login', component: Login }
]

const router = new VueRouter({
    routes
})

export default router